package com.qf.game;

/**
 * 武器类
 */
public class Weapon {
    private int damage; //武器的伤害
    private String name; // 武器的名字

    public int getDamage() {
        return damage;
    }

    public void setDamage(int damage) {
        this.damage = damage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Weapon() {
    }

    public Weapon(int damage, String name) {
        this.damage = damage;
        this.name = name;
    }

    /**
     * 武器造成伤害
     * @return
     */
    public int dealDamage(){
        return damage;
    }
}
